﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// 组织机构与人员树实体类
/// </summary>
public class TreeOrganAndEmpParams
{
    private string _sqlSelect;
    private string _sqlChildSelect;
    private string _parentIDField;
    private string _fieldCurrNodeID;
    private string _fieldEmpID;
    private string _fieldEmpName;
    private string _fieldEmpOrganID;
    private string _fieldText;
    private string _headMark;
    private string _target;
    private string _jsFunctionName;

    public TreeOrganAndEmpParams()
    {
    }

    /// <summary>
    /// 查询数据库中机构表信息
    /// </summary>
    public string SQLSelect
    {
        get { return _sqlSelect; }
        set { _sqlSelect = value; }
    }

    /// <summary>
    /// 查询数据库人员表信息
    /// </summary>
    public string SQLChildSelect
    {
        get { return _sqlChildSelect; }
        set { _sqlChildSelect = value; }
    }

    /// <summary>
    /// 数据库中父节点字段
    /// </summary>
    public string FieldParentID
    {
        get { return _parentIDField; }
        set { _parentIDField = value; }
    }

    /// <summary>
    /// 数据库中人员ID字段名
    /// </summary>
    public string FieldEmpID
    {
        get { return _fieldEmpID; }
        set { _fieldEmpID = value; }
    }

    /// <summary>
    /// 数据库中人员表所属机构ID字段名
    /// </summary>
    public string FieldEmpOrganID
    {
        get { return _fieldEmpOrganID; }
        set { _fieldEmpOrganID = value; }
    }

    /// <summary>
    /// 数据库中人员名称字段名
    /// </summary>
    public string FieldEmpName
    {
        get { return _fieldEmpName; }
        set { _fieldEmpName = value; }
    }

    /// <summary>
    /// 数据库中子节点字段名
    /// </summary>
    public string FieldCurrNodeID
    {
        get { return _fieldCurrNodeID; }
        set { _fieldCurrNodeID = value; }
    }

    /// <summary>
    /// 数据库中树的文本字段名
    /// </summary>
    public string FieldText
    {
        get { return _fieldText; }
        set { _fieldText = value; }
    }
    /// <summary>
    /// 根节点标识
    /// </summary>
    public string HeadMark
    {
        get { return _headMark; }
        set { _headMark = value; }
    }

    /// <summary>
    /// 设定页面打开方式target
    /// </summary>
    public string Target
    {
        get { return _target; }
        set { _target = value; }
    }

    /// <summary>
    /// 客户端JS方法名，用于组织机构等非导航菜单类的树构建
    /// </summary>
    public string JSFunctionName
    {
        get { return _jsFunctionName; }
        set { _jsFunctionName = value; }
    }
}
